<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">


<ui:composition template="/template.xhtml">
	<ui:define name="tituloPagina">
		<p:outputLabel value="#{msgs['paginas.cadastro.titulo.responsaveis']}" />
	</ui:define>
	<ui:define name="principal">
		<div class="formulario">

			<p:panelGrid columns="3">
				<p:outputLabel for="nome" value="#{msgs['campos.titulo.nome']}" />
				<p:inputText value="#{pessoaBean.pessoa.nome}" style="width: 219px;"
					label="#{msgs['campos.titulo.nome']}" id="nome" required="true"
					immediate="true"
					requiredMessage="#{msgs['mensagens.campo.obrigatorio']}" />
				<p:message for="nome" />

				<p:outputLabel for="matricula"
					value="#{msgs['campos.titulo.matricula']}" />
				<p:inputText value="#{pessoaBean.pessoa.matricula}"
					style="width: 219px;" label="#{msgs['campos.titulo.matricula']}"
					id="matricula" required="true" immediate="true"
					requiredMessage="#{msgs['mensagens.campo.obrigatorio']}" />
				<p:message for="matricula" />

				<p:outputLabel value="#{msgs['campos.titulo.email']}" for="email" />
				<p:inputText value="#{pessoaBean.pessoa.email}"
					style="width: 219px;" label="#{msgs['campos.titulo.email']}"
					id="email" required="true" immediate="true"
					requiredMessage="#{msgs['mensagens.campo.obrigatorio']}" />
				<p:message for="email" />


			</p:panelGrid>

		</div>
	</ui:define>
	<ui:define name="botoes">
		<p:commandButton value="#{msgs['botoes.salvar']}"
			action="#{pessoaBean.salvar}" immediate="false" update="@form"
			icon="ui-icon-disk" id="salvar" />
		<p:commandButton value="#{msgs['botoes.cancelar']}"
			action="#{pessoaBean.cancelar}" immediate="true" id="cancelar" />
	</ui:define>
</ui:composition>
</html>